package com.stedu.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 部门表
 * @TableName department
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
    /**
     * 主键
     */
    private Integer did;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String dname;

    /**
     * 部门电话
     */
    @NotBlank(message = "部门电话不能为空")
    private String dphone;
    //
    private List<Repairer> emps;
}